package commands

import (
	"project/design/command/recievers"
)

type GateCloseCommand struct {
	*recievers.Gate
}

func CreateGateCloseCommand(gate *recievers.Gate) *GateCloseCommand {
	return &GateCloseCommand{gate}
}

func (gcc *GateCloseCommand) Execute() {
	gcc.Close()
}

func (gcc *GateCloseCommand) Undo() {
	gcc.Open()
}
